import request from '@/utils/request';

export async function addValue(params) {
  return request(`/fss/ntfund3/addNetValueData`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}

export async function delValue(params) {
  return request(`/fss/ntfund3/removeNetValueData`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}

export async function getCurve(params) {
  return request(`/fss/ntfund3/netValueCurve`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}

export async function getDates(params) {
  return request(`/fss/ntfund3/netValueDates`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}
export async function getNetReportDates(params) {
  return request(`/fss/ntfund3/netReportDates`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  });
}

export async function getNetReportDatas(params) {
  return request(`/fss/ntfund3/netReportDatas`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}

export async function getNetReportDataReset(params) {
  return request(`/fss/ntfund3/netReportDataReset`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
    body: JSON.stringify(params),
  });
}
